package com.itec.learn.spring.aop;

import com.itec.learn.spring.aop.aspectj.Log;
import org.springframework.stereotype.Service;

/**
 * @author chenyiqun
 */
@Service
public class HelloImpl implements IHello {
    @Override
    public void hello(String name) {
        System.out.println("Hello, " + name);
    }

    @Log
    public Integer hi(String name) {
        System.out.println("Hi, " +name);
        return 100;
    }
}
